﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleSocket
{
    [Flags]
    internal enum MessageFlags : int
    {
        /// <summary>
        /// A responce is being requested.
        /// </summary>
        ResponceRequest = 1,

        /// <summary>
        /// Reply to a RequestResponce
        /// </summary>
        Responce = 2,

        /// <summary>
        /// CommandText is attached to the message
        /// </summary>
        CommandText = 4,

        /// <summary>
        /// Command is attached to the message
        /// </summary>
        Command = 8,

        /// <summary>
        /// Main Data Package is attached to the message
        /// </summary>
        DataPackage = 16,

        /// <summary>
        /// Request a Pong Responce to check if the connection is still alive.
        /// </summary>
        Ping = 32,

        /// <summary>
        /// Responce to a PingRequest to let the other side know we are still connected.
        /// </summary>
        Pong = 64
    }
}